package com.aplink.generic.pojo;

public enum TableRelationship {
    MANY_TO_ONE("MANY-TO-ONE"),
    ONE_TO_MANY("ONE-TO-MANY");
    public static TableRelationship get(final String value) {
        for (final TableRelationship relationship : TableRelationship.values()) {
            if (relationship.getValue().equalsIgnoreCase(value)) {
                return relationship;
            }
        }
        return ONE_TO_MANY;
    }

    private String mValue;

    private TableRelationship(final String value) {
        setValue(value);
    }

    public String getValue() {
        return this.mValue;
    }

    public void setValue(final String value) {
        this.mValue = value;
    }
}
